package tankGame04.tank;


/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2024-03-01
 * Time:12:03
 */
@SuppressWarnings("all")
public abstract class Tank {
    private int x;
    private int y;
    private int direct;//0-UP 1-RIGHT 2-DOWN 3-LEFT
    private int speed = 13;
    public static final int TANK_SIZE = 52;
    private boolean state = true;

    public Tank(int x, int y, int direct, int speed) {
        this.x = x;
        this.y = y;
        this.direct = direct;
        this.speed = speed;
    }

    public Tank(int x, int y, int direct) {
        this.x = x;
        this.y = y;
        this.direct = direct;
    }

    public Tank(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getDirect() {
        return direct;
    }

    public void setDirect(int direct) {
        this.direct = direct;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public abstract void move(int direct, int speed);

    public abstract void shot();

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

}
